package com.emergency.assist;

import com.emergency.common.util.IdWorker;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Created by lijie on 2019/9/23.
 * 辅助决策系统
 */
@SpringBootApplication
@EnableSwagger2
@EntityScan(basePackages={"com.emergency.***.domain"})
public class AssistApplication {
    private final static Logger logger= LoggerFactory.getLogger(AssistApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(AssistApplication.class);
        logger.info("辅助决策模块启动成功！");
    }

    @Bean
    public IdWorker idWorkker(){
        return new IdWorker(1, 1);
    }
}
